<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %><%--jstl을 쓰기 위해 사용 --%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %><%--숫자 포맷을 사용하기 위해 사용 --%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions"  prefix="fn"%><%--함수들을 이용하기 위해 사용 --%>
<%@ taglib prefix="c-rt" uri="http://java.sun.com/jstl/core_rt" %>  <%-- ie버전 확인에 쓰기 위해 씀 --%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>프로젝트복사생성</title>
<script type="text/javascript" src="script/project.js"></script>
<script type="text/javascript" src="script/sms_riskI_script.js"></script>
<script type="text/javascript" src="script/sms_util_script.js"></script>
<link href="reset.css" rel="stylesheet" type="text/css" />
<link href="style.css" rel="stylesheet" type="text/css" />
<!--말 줄임 css(모든 브라우저 적용)-->
<style type="text/css">
.ellipsis{
	white-space:nowrap;
	text-overflow:ellipsis;		/* IE, Safari */
	-o-text-overflow:ellipsis;		/* Opera under 10.7 */
	overflow:hidden;			/* "overflow" value must be different from "visible" */ 
	-moz-binding: url('ellipsis.xml#ellipsis');
}
</style>


<script type="text/javascript">
function winClose(){
	window.close();
}

</script>
</head>
<body>
<c:if test="${sessionScope.USER_ID==null}">
		<script type="text/javascript">
			alert("연결이 끊어졌습니다. 다시 로그인 해주시기 바랍니다");
			window.close();
		</script>	
</c:if>
<div class="box">
		<h4 class="white">과거 RMP기준 준용</h4>
        <div class="box-container1">  
        <form name="mplistForm" action="projectAction.do" method="post">
        	<input type="hidden" name="mode" value="mplist_SC_insert"></input>
        	<input type='hidden' name='pro_loginID' id='pro_loginID'  value='${sessionScope.USER_ID}'></input>
        	<table class="table-short1" style="margin: 0 auto; width: 400px;">
      			<tfoot>
      				<tr>
      					<td>
      					<div class="align-right"><!--select class="form-select"><option value="option1">Bulk Options</option>
      					<option value="option2">Delete All</option></select-->
      					
      					<c:choose>
                   			<c:when test="${fn:length(list)!= 0}">
                   				<a href="#" class="button"  style="margin: 0px" onclick="javascript: mplist_SCInsert()"><span>생성</span></a>
                   			</c:when>
                   			<c:otherwise>
                   				<a href="#" class="button1"  style="margin: 0px" onclick="return false"><span>생성</span></a>
                   			</c:otherwise>
                   		</c:choose>
      					
      					
                        <a href="#" class="button"  style="margin: 0px" onclick="javascript: winClose()"><span>닫기</span></a></div></td>
      				</tr>
      				<tr><td class="spaceLine"></td></tr>
      			</tfoot>
      		</table>
      		<table class="table-short1" style="margin: 0 auto; width: 400px">
      			<colgroup>
					<col width="45px"/>
					<col width="50px"/>
					<col/>
				</colgroup>	
      			<thead>
      			<%--
      				<tr>
      					<td class="col-chk col-rowspanMid" rowspan="2"><input type='checkbox' name='checkAll' onclick="javascript: selectAll()" style="cursor:pointer"></input></td>
      					<td class="col-rowspanMid" rowspan="2">보안<br/>통제영역</td>
      					<td class="col-rowspanMid" rowspan="2">보안<br/>통제항목</td>
      					<td class="col-rowspanMid" rowspan="2">보안통제<br/>세부항목</td>
      					<td class="col-rowspanMid" rowspan="2">취약성<br/>평가항목</td>
      					<td class="col-rowspanMid" rowspan="2">모범관행</td>
      					<td colspan="2" class="lowPadding1">RA자산관리자</td>
      					<td class="col-rowspanMid" rowspan="2">취약성상세</td>
      					<td colspan="10" class="lowPadding1">연관자산유형</td>
      					<td></td>
      				</tr>
      				 --%>
      				<tr>
      					<td colspan="2" class="col-alignCenter">프로젝트 선택</td>
      					<td class="normalTD col-alignCenter">
      						<select name="pro_id" id="pro_id" class="selectBoxPJ" style="width: 97%">
      						<c:choose>
                    			<c:when test="${fn:length(list)!= 0}">
                    				<c:forEach  var="list" items="${requestScope.list}" varStatus="status">
										<option value="${list.pro_id }">${list.pro_sday } | ${list.pro_pindex } | ${list.pro_nm }</option>
									</c:forEach>
                    			</c:when>
                    			<c:otherwise>
                    				<option value="">- 선택가능한 프로젝트가 없습니다 -</option>
                    			</c:otherwise>
                    		</c:choose>
								
							</select>
      					</td>
      				</tr>
   				</thead>
			</table> 
      				<%--
      				<tr>
      					<td colspan="3" class="spaceLine"></td>
      				</tr>
      				<tr>
      					<td class="col-chk col-rowspanMid col-alignCenter"><input type='checkbox' name='checkAll' onclick="javascript: selectAll()" style="cursor:pointer"></input></td>
      					<td colspan="2" class="col-alignCenter">종류</td>
      				</tr>
      			</thead>
      			<tbody>
           			<tr class="odd">
            			<td class="col-chk"><input type="checkbox" class="chkCursor" name="check" id="check1"  value="1" onclick="pjcheckeds(this)"></input></td>
            			<td colspan="2">자산 기준 수립</td>
            		</tr>
           			<tr>
            			<td class="col-chk"><input type="checkbox" class="chkCursor" name="check" id="check2"  value="2" onclick="pjcheckeds(this)"></input></td>
            			<td colspan="2">자산식별 및 평가</td>
            		</tr>
           			<tr class="odd">
            			<td class="col-chk"><input type="checkbox" class="chkCursor" name="check" id="check3" value="3" onclick="pjcheckeds(this)"></input></td>
            			<td colspan="2">위협식별 및 평가</td>
            		</tr>
           			<tr>
            			<td class="col-chk"><input type="checkbox" class="chkCursor" name="check" id="check4" value="4" onclick="pjcheckeds(this)"></input></td>
            			<td colspan="2">취약성식별 및 평가</td>
            		</tr>
           			<tr class="odd">
            			<td class="col-chk"><input type="checkbox" class="chkCursor" name="check" id="check5" value="5" onclick="pjcheckeds(this)"></input></td>
            			<td colspan="2">위험식별 및 평가</td>
            		</tr>
           			<tr>
            			<td class="col-chk"><input type="checkbox" class="chkCursor" name="check" id="check6"  value="6" onclick="pjcheckeds(this)"></input></td>
            			<td colspan="2">위험수준 산정 및 평가</td>
            		</tr>
           			<tr class="odd">
            			<td class="col-chk"><input type="checkbox" class="chkCursor" name="check" id="check7"  value="7" onclick="pjcheckeds(this)"></input></td>
            			<td colspan="2">위험처리 계획 수립</td>
            		</tr>
           			<tr>
            			<td class="col-chk"><input type="checkbox" class="chkCursor" name="check" id="check8" value="8" onclick="pjcheckeds(this)"></input></td>
            			<td colspan="2">SOA 정립</td>
            		</tr>
           			<tr class="odd">
            			<td class="col-chk"><input type="checkbox" class="chkCursor" name="check" id="check9"  value="9" onclick="pjcheckeds(this)"></input></td>
            			<td colspan="2">위험수용</td>
            		</tr>
      			</tbody>
      		</table>  	
      		 --%>
      		</form>
      	</div><!-- end of div.box-container1 -->
      	</div> <!-- end of div.box -->
</body>
</html>